package com.demo4;

/**
 * Created by Administrator on 2017/3/26.
 */
class StaticMethod{
    static void printString(String str){
        System.out.println(str);
    }
    static void printInt(int i){
        System.out.println(i);
    }
}

public class Lei7 {
    public static void main(String[] args) {
        System.out.println("用静态方法打印出信息");
        StaticMethod.printString("str类型");
        StaticMethod.printInt(5);
    }
}
